package com.tmall.qatest.domain;

import com.taobao.hsf.notify.client.message.Message;
import com.tmall.qatest.converter.DpcMessageConverter;
import com.tmall.qatest.info.DpcMessageInfo;

/**
 * Created with IntelliJ IDEA.
 * User: Shuffle
 * Date: 13-1-31
 * Time: 下午4:17
 * To change this template use File | Settings | File Templates.
 * TODO complete this implementation
 */
public class DpcWood implements Wood{
    private DpcMessageInfo dpcOrderInfo;
    private DpcMessageConverter dpcOrderConverter;

    @Override
    public Message prepareWood() {
        return dpcOrderConverter.toMessage(dpcOrderInfo);
    }

    @Override
    public String getWoodType() {
        return dpcOrderConverter.getMessageType();
    }
}
